package com.digitalchina.lxnsy.api;

import android.app.Activity;
import android.os.Handler;

import com.digitalchina.lxnsy.constant.MSG;
import com.digitalchina.lxnsy.constant.URL;
import com.digitalchina.lxnsy.toolkit.OkHttpUtil;
import com.lzy.okhttputils.model.HttpParams;

/**
 * ================================================
 * 项目名称：BigData
 * 类描述：讲师接口
 * 包名：com.digitalchina.bigdata.api
 * 创建人：郑皓
 * 创建时间：2017/3/24 20:53
 * 修改备注：
 * ================================================
 */

public class BusinessLecturer {
    /**
     * 查询讲师的培训
     *
     * @param activity
     * @param teacherId
     * @param page
     * @param num
     * @param handler
     */
    public static void getLecturerTrainList(Activity activity, String teacherId, String page,
                                            String num, Handler handler) {

        HttpParams params = new HttpParams();
        params.put("teacherId", teacherId);
        params.put("page", page);
        params.put("num", num);

        OkHttpUtil.post(activity, URL.URL_GET_TEACHER_TRAINING_NEW, "", params,
                handler, MSG.MSG_GET_LECTURER_TRAIN_LIST_SUCCESS, MSG.MSG_GET_LECTURER_TRAIN_LIST_FIELD);

    }
}
